package com.JZ.QM.service;

import com.JZ.QM.common.entity.EntrustDetailEntity;
import com.JZ.QM.common.entity.EntrustRecordEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/9 15:08
 */
public interface EntrustRecordService extends IService<EntrustRecordEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 根据交易记录id返回委托列表
     * @param tradeId 交易记录id
     * @return
     */
    ArrayList<EntrustDetailEntity> getEntrustRecordsByTradeId(Long tradeId);
}
